package com.yishun.springboot.pojo;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Component;

/**
 * 响应对接我方数据平台返回码的bean类
 * @author YS
 *
 */
@Component
public class ResponseBase {

	/**
	 * 默认返回类型构造器 默认返回500,要自定义，自己new变量在里面set
	 */
	public ResponseBase() {
		Success=false;
		Code=500;
		Message="未知错误";
		Map map = new HashMap();
		
	}
	
	private Boolean Success;
	private String Message;
	private Integer Code;
	private Map<String,Object>Data;
	public Boolean getSuccess() {
		return Success;
	}
	public void setSuccess(Boolean success) {
		Success = success;
	}
	public String getMessage() {
		return Message;
	}
	public void setMessage(String message) {
		Message = message;
	}
	public Integer getCode() {
		return Code;
	}
	public void setCode(Integer code) {
		Code = code;
	}
	public Map<String, Object> getData() {
		return Data;
	}
	public void setData(Map<String, Object> data) {
		Data = data;
	}
	@Override
	public String toString() {
		return "ResponseBase [Success=" + Success + ", Message=" + Message + ", Code=" + Code + ", Data=" + Data + "]";
	}
	
	
}
